package com.robot.dao.feigndto.agentdto;

import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@NoArgsConstructor
@Builder
public class AssistantRequest {
    private String action;
    private Input input;

    // 构造函数
    public AssistantRequest(String action, Input input) {
        this.action = action;
        this.input = input;
    }

    // Getters 和 Setters
    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Input getInput() {
        return input;
    }

    public void setInput(Input input) {
        this.input = input;
    }

    @Data
    // Input 类
    public static class Input {
        private String text;
        private List<KnowledgeBase> knowledge_list;

        // 构造函数
        public Input(String text, List<KnowledgeBase> knowledgeList) {
            this.text = text;
            this.knowledge_list = knowledgeList;
        }

        // Getters 和 Setters
        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public List<KnowledgeBase> getKnowledgeList() {
            return knowledge_list;
        }

        public void setKnowledgeList(List<KnowledgeBase> knowledgeList) {
            this.knowledge_list = knowledgeList;
        }
    }

    @Data
    // KnowledgeBase 类
    public static class KnowledgeBase {
        private int id;
        private String name;

        // 构造函数
        public KnowledgeBase(int id, String name) {
            this.id = id;
            this.name = name;
        }

        // Getters 和 Setters
        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
